﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace DBSchemaViewer.BackEnd.Entities
{
    public class EntityTableFieldEntry : EntityBase
    {
            public bool IsPrimaryKey { get; set; }
            public bool IsForeignKey { get; set; }
            public string FieldName { get; set; }
            public int Type { get; set; }
            public int Length { get; set; }

            public EntityTableFieldEntry()
            {
            }

            public EntityTableFieldEntry(string fieldName, bool isPrimaryKey, bool isForeignKey, int type, int length)
            {
                FieldName = fieldName;
                IsForeignKey = isForeignKey;
                IsPrimaryKey = isPrimaryKey;
                Type = type;
                Length = length;
            }
    }

    public class EntityTableFieldEntries : ObservableCollection<EntityTableFieldEntry>
    {
    }
}
